home *** CD-ROM | disk | FTP | other *** search
/ ASP Advantage 1994 2nd Q2 / The Association of Shareware Professionals - The Official ASP Advantage (2nd Quarter)(1994).bin / contents / sample.bat < prev    next >
DOS Batch File  |  1994-03-01  |  2KB  |  74 lines

  1. @echo off
  2.  
  3. rem The Library Access program passes 5 parameters when executing the FILE
  4. rem TO RUN option.  These parameters are:
  5.  
  6. rem %1 = DRIVE LETTER (A:)              %4 = CURRENT DATE
  7. rem %2 = FILE NUMBER                    %5 = CURRENT TIME
  8. rem %3 = FILE NAME (.LZH)               %6 = PRT FILENAME
  9.  
  10. rem To Create a LOG FILE and have copy information appended to it use the
  11. rem double greater than symbols. 
  12. rem ***************************************************************************
  13.  
  14. rem echo %2 %3 copied to %1 at %5 on %4
  15. rem echo.
  16. rem echo This information has been appended to a file named COPY.LOG.
  17. rem echo Edit the SAMPLE.BAT file for more information on using this feature.
  18. echo.
  19.  
  20. rem PAUSE
  21.  
  22. echo.
  23. rem ***************************************************************************
  24.  
  25. rem If you use this system be sure to delete the log file occasionally as it
  26. rem will continue to grow each time a copy is made.  If you use this batch file
  27. rem you should remove the PAUSE and all the ECHO statements except the one that
  28. rem writes to a file.  This batch file could also be used to copy files to each
  29. rem disk being made.  Example:
  30.  
  31. rem COPY HELPFILE.TXT %1
  32.  
  33. rem This command would cause the file HELPFILE.TXT to be copied to each disk
  34. rem being made.
  35. rem ***************************************************************************
  36. rem GOTO chkdrive
  37.  
  38. rem This batch file can be used to call the LPRINT.EXE program to print a
  39. rem label each time a program is copied.  Unremark the following line to
  40. rem demonstrate this.
  41.  
  42. LPRINT /R%6 /P%2
  43.  
  44. rem To use this batch file to print labels from the SSLIB program you would
  45. rem need to change to the \APLUS\COPYCAT directory, run the LPRINT program
  46. rem then change back to the \APLUS\SSLIB directory.  Example:
  47.  
  48. rem     CD\APLUS\COPYCAT
  49. rem     LPRINT /R%6 /P%2
  50. rem     CD\APLUS\SSLIB     
  51.  
  52. rem The LPRINT program looks for it's files in the currently logged directory.
  53. GOTO Endit
  54. rem ***************************************************************************
  55.  
  56. rem This batch file can print both 3 1/2 and 5 1/4 inch labels.  Simply
  57. rem uncomment the GOTO chkdrive line to enable this feature. If your 3 1/2
  58. rem inch drive is not DRIVE A: you will need to edit this file to change
  59. rem the drive letter designations.
  60.  
  61. :chkdrive
  62. if %1 == A: GOTO print3
  63. if %1 == B: GOTO print5
  64.  
  65. :print3
  66. FULL3 /R%6 /P%2
  67. GOTO endit
  68.  
  69. :print5
  70. FULL5 /R%6 /P%2
  71. GOTO endit
  72.  
  73. :endit
  74.